package com.ruoyi.framework.security.context;

/**
 * 登录信息 是否是手机登录
 * 
 * @author ruoyi
 */
public class IsPhoneLoginContextHolder
{
    private static final ThreadLocal<Boolean> contextHolder = new ThreadLocal<>();

    public static Boolean getContext()
    {
        return contextHolder.get();
    }

    public static void setContext(Boolean context)
    {
        contextHolder.set(context);
    }

    public static void clearContext()
    {
        contextHolder.remove();
    }
}
